package com.feather.common.db;

/**
 * @author flogyin
 */
public interface TypeMapping {
	void register(DbFetcher fetcher);

	// void register(String dataType, DbFetcher fetcher);
	void register(DbSaver saver);

	// void register(@SuppressWarnings("rawtypes") Class type, String dataType,
	// DbSaver saver);

	DbFetcher lookup(String dataType);

	DbSaver lookup(@SuppressWarnings("rawtypes") Class type, String dataType);

	void clear();
}
